package com.example.pay_service.otherservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * @author TLJ
 * @title: OrderService
 * @projectName mall_
 * @description: TODO
 * @date 2021/12/239:59
 */
@Component
@FeignClient(name = "ORDERFORMSERVICE")
public interface OrderService {

    @RequestMapping("/insertorder")
    void insertorder(
            @RequestParam("addressid") int addressid,
            @RequestParam("userid") int userid,
            @RequestParam("spid") int spid,
            @RequestParam("ordernumber") String ordernumber,
            @RequestParam("payway") String payway,
            @RequestParam("comitydescription") String comitydescription,
            @RequestParam("comityprices") double comityprices,
            @RequestParam("comitynumber") int comitynumber,
            @RequestParam("comitypicture")  String comitypicture,
            @RequestParam("Settlementprice") double Settlementprice,
          //  @RequestParam("addressinformation")  String addressinformation,
            @RequestParam("freight") String freight,
            @RequestParam("actualpayment")  double actualpayment,
            @RequestParam("preferentialinformation")  String preferentialinformation,

            @RequestParam("specifications")  String specifications

    );

    @RequestMapping("/updatedd")
     int updatedd(
            @RequestParam("ordernumber") String ordernumber
    );
}
